<!--
 * @Descripttion : 
 * @Autor        : Lilong
 * @Date         : 2022-09-14 09:26:09
 * @LastEditTime : 2022-09-14 09:41:30
 * @FilePath     : \src\GrandSon.vue
-->
<template>
    <h5>我是孙子组件</h5>

    <ul >
        <li v-for="i in list" :key="i">{{ i }}</li>
    </ul>
</template>
<script setup>
    import { inject } from 'vue'
    // 接受父组件提供的数据
    const list = inject('list')
</script>